<div class="fsh-pop">
    <div id="add_form" class="layui-form" lay-filter="add_form">
        <input type="hidden" name="squadCode" >
        <div class="layui-form-item layui-form-text">
            <div class="layui-inline">
                <label class="layui-form-label">班级代码</label>
                <div class="layui-input-block">
                    <input name="squadCode"  readonly  class="layui-input">
                </div>
            </div>
        </div>
        <div class="layui-form-item layui-form-text">
            <div class="layui-inline">
                <label class="layui-form-label">学年</label>
                <div class="layui-input-block">
                    <input name="year" readonly class="layui-input">
                </div>
            </div>
            <div class="layui-inline">
                <label class="layui-form-label">学期</label>
                <div class="layui-input-block">
                    <input name="term"  readonly class="layui-input">
                </div>
            </div>
        </div>
        <div class="layui-form-item layui-form-text">
            <div class="layui-inline">
                <label class="layui-form-label">第一天上课时间</label>
                <div class="layui-input-block">
                    <input id="startTime" name="createDate" readonly class="layui-input">
                </div>
            </div>
        </div>
    </div>
</div>
<script type="text/javascript">
    layui.use(['form', 'laydate'], function () {
        var form = layui.form;
        var layDate = layui.laydate;
        var _originData = JSON.parse($('<div>').html('<%=$data%>').text());
        form.val('add_form', _originData);
        console.log(_originData);

        //开始日期
        layDate.render({elem: '#startTime'});
    });
</script>